package cn.project.lemontree.service;

import cn.project.lemontree.bean.Child;
import cn.project.lemontree.bean.Parent;
import cn.project.lemontree.bean.ParentChild;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ParentChildService extends IService<ParentChild> {
    List<ParentChild> listpage(int page, int size, String childName, String parentName);
    int count(String childName, String parentName);
    boolean remove(Integer childId,Integer parentId);
    List<Parent>findAllByChild(Integer childId,String childName);
    List<Child>findAllByParent(Integer parentId,String parentName);
    boolean save(Parent parent,Child child);
}
